import $http from '@/assets/js/http' 

//查询我的收藏列表
export function getfavoriteList(userId,index,size,lang) {
    return $http.get('/api/goods/myCollect/list', {
        params:{
            userId:userId,
            pageIndex:index,
            pageSize:size,
            lang:lang,
        }
    });
}

//查询我的藏品列表
export function getCollectionList(userId,index,size,lang) {
    return $http.get('/api/goods/myList', {
        params:{
            userId:userId,
            pageIndex:index,
            pageSize:size,
            lang:lang,
        }
    });
}

//删除我的藏品
export function postDelcollection(userId,goodsId,lang) {
    return $http.post('/api/goods/myDelete', {
            userId:userId,
            goodsId:goodsId,
            lang:lang
    });
}

//取消藏品收藏
export function postCancelFa(userId,goodsId,lang) {
    return $http.post('/api/goods/collect/cancel', {
            userId:userId,
            goodsId:goodsId,
            lang:lang
    });
}
